window.onload=function(){
      var xhr= new XMLHttpRequest()
      xhr.open('get','/studio/album/bind.json'+location.search)
      xhr.onload=function(){
          var data=JSON.parse(xhr.responseText)

          document.querySelector('.add').href+=location.search
          document.querySelector('.title').textContent=data.title

          var tbody=document.querySelector('tbody')
          var list=data.trackList;
          for(var i in list){
              var t=list[i]

              var html = `<tr><td>${t.tid}</td><td>${t.title}</td><td><a href="/studio/album/unbind.do?tid=${t.tid}&aid=${data.aid}">取消关联</a></td></tr>`

              tbody.innerHTML += html
          }
      }
      xhr.send()
}